package pers.qianyu.module.core.domain.comment.entity;

import com.baomidou.mybatisplus.annotation.*;
import pers.qianyu.module.core.comm.*;

@TableName("lamb_comments")
public class CommentPO extends BaseEntity {
    private static final long serialVersionUID = -9111440894890092310L;
    /**
     * 评论对象 id
     */
    private Long topicId;
    /**
     * 评论的父级评论 id
     */
    private Long parentId;
    /**
     * 评论内容
     */
    private String content;

    public CommentPO() {
    }

    public CommentPO(Long topicId, Long parentId, String content) {
        this.topicId = topicId;
        this.parentId = parentId;
        this.content = content;
    }

    public Long getTopicId() {
        return topicId;
    }

    public void setTopicId(Long topicId) {
        this.topicId = topicId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "CommentPO{" +
                "topicId=" + topicId +
                ", parentId=" + parentId +
                ", content='" + content + '\'' +
                '}';
    }
}
